<?php
require_once "managerSession.php";
if($manager["role"]!="超级管理员"){
    echo "你没有权限";
    exit;
}
$Item="添加管理员";
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>娱乐会所吧台管理系统</title>
    <style>
        #options a{margin: 15px 0}
    </style>
    <?php include_once "link.php"; ?>
    <script src="../static/utf8-php/ueditor.config.js"></script>
    <script src="../static/utf8-php/ueditor.all.js"></script>
    <script src="../static/utf8-php/lang/zh-cn/zh-cn.js"></script>
</head>
<body class="container">
<?php require_once "Nav.php"; ?>
<div class="main">
    <?php include_once "menu.php"; ?>
    <div class="pr inlb bd col-xs-10">
        <div style="font-size: 30px;line-height: 80px;text-align: center">添加管理员</div>
        <div  class="form-horizontal" style="margin-right: 15px;margin-top: 165px">
            <div class="form-group" style="margin-top: 15px;">
                <label for="cm" class="control-label col-xs-3">微信OpenId:</label>
                    <span class="col-xs-6">
                        <input type="text" name="wxid" id="wxid"  class="form-control">
                    </span>
                    <span class="col-xs-3">
                        <button type="button" id="tj"  class="btn bg-primary" >添加</button>
                    </span>
            </div>
        </div>
    </div>
</div>
<?php
dialogHeader("message", "#", "提示","sm");?>
<div id="article" class="modal-body">

</div>
<?php dialogFooter(0);
?>
<script>
    $(function(){
        $("#tj").click(function(){
            $.post("AddManager.php",{wxid:$("#wxid").val()},function(o){
                console.log(o);
                $("#article").text(o);
                $("#message").modal("show");
                $("#wxid").val("");
            })
        })
    })
</script>
</body>
</html>
